home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 2.1 KB | 53 lines | [TEXT/GEOL] |
- Item 4162372 6-July-88 10:29
-
- From: ROSENSTEIN1 Rosenstein, Larry
-
- To: MACAPP$ MacApp Interest List
-
- Sub: Make Files
-
- You definitely need a dependency line that will delete Andys.LOAD when needed.
- In addition to depending on "{SrcMacApp}UAndysUnit.p", it also needs to depend
- on the other (MacApp) $LOAD files in your USES statement.
-
- I don't think you need to specify "{LoadMacApp}Andys.LOAD" in the
- OtherInterfaces line. Instead this should read:
-
- OtherInterfaces = "{SrcMacApp}UAndysUnit.p"
-
- This expresses the true relationship between UAndysUnit.p and
- UMyApplication.p.o. (Also, this prepares you for MPW 3.0, in which you don't
- have $LOAD files.)
-
- As you discovered, this doesn't quite work because the $LOAD file and
- UMyApp.p.o both depend on UAndysUnit.p. The order in which these get built
- depends on the order in which they appear in the make file(s).
-
- MacApp forces the $LOAD files to be processed first by building a dummy target
- called AllLOADFiles. Therefore, should should add the following dependency to
- your make file:
-
- AllLOADFiles ƒ "{LoadMacApp}Andys.LOAD"
-
- Then the $LOAD files that need to be deleted will be deleted before any
- compiles are done.
-
- You idea of putting the $LOAD file in the OtherInterfaces section should work
- as well, but this might be a little clearer. $LOAD files are a real hack in
- the Pascal compiler; their behavior and restrictions make it easy to implement,
- but hard for the programmer to deal with.
-
- Finally to respond to Greg Hemstreet about MABuild. MABuild was intended to
- solve the common case of building a program, so that you don't need to read
- about Make before you can use MacApp. This is in keeping with the overall
- MacApp philosphy. You should not hesitate to write your own Make files if you
- find the ones provided with MacApp to be too limiting. One of the recent
- MacApp Developer Assn newsletter contained an article on building a large
- MacApp program; the make files described there are available from APDA on one
- of the MacApp Developer Assn disks (the 3rd?).
-
- Larry Rosenstein
-
-
-
-